package com.lancoo.lancooimageloader.xutils3;

import com.lancoo.lancooimageloader.LancooCancelableCallback;

import org.xutils.common.Callback;

/**
 * Author: Andecy
 * Time: 2017/5/27
 * Email: andecy@foxmail.com
 * Description: TODO
 */

public class xUtilsCancelableCallback implements LancooCancelableCallback{

    private Callback.Cancelable mCancelable;

    public xUtilsCancelableCallback(Callback.Cancelable cancelable) {
        mCancelable = cancelable;
    }


    @Override
    public void cancel() {
        mCancelable.cancel();
    }

    @Override
    public boolean isCancelled() {
        return mCancelable.isCancelled();
    }
}
